package com.szt.sy.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.szt.sy.controller.base.AdminBaseController;
import com.szt.sy.service.system.area.AreaService;

/***
 *
 * @author wwy
 *
 */
@Controller
@RequestMapping("main")
public class MainController extends AdminBaseController {
	
	@Resource(name = "areaService")
	private AreaService areaService;
	
	@RequestMapping("area/json")
	@ResponseBody
	public String getJson() {
		return areaService.listAllJson();
	}
	
}
